package com.ruoyi.statistic.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.statistic.mapper.WDayExitWarehouseStatMapper;
import com.ruoyi.statistic.domain.WDayExitWarehouseStat;
import com.ruoyi.statistic.service.IWDayExitWarehouseStatService;

/**
 * 日出库量Service业务层处理
 * 
 * @author wzy
 * @date 2024-09-01 17:13:01
 */
@Service
public class WDayExitWarehouseStatServiceImpl implements IWDayExitWarehouseStatService 
{
    @Autowired
    private WDayExitWarehouseStatMapper wDayExitWarehouseStatMapper;

    /**
     * 查询日出库量
     * 
     * @param dayExitStatisticId 日出库量主键
     * @return 日出库量
     */
    @Override
    public WDayExitWarehouseStat selectWDayExitWarehouseStatByDayExitStatisticId(Long dayExitStatisticId)
    {
        return wDayExitWarehouseStatMapper.selectWDayExitWarehouseStatByDayExitStatisticId(dayExitStatisticId);
    }

    /**
     * 查询日出库量列表
     * 
     * @param wDayExitWarehouseStat 日出库量
     * @return 日出库量
     */
    @Override
    public List<WDayExitWarehouseStat> selectWDayExitWarehouseStatList(WDayExitWarehouseStat wDayExitWarehouseStat)
    {
        return wDayExitWarehouseStatMapper.selectWDayExitWarehouseStatList(wDayExitWarehouseStat);
    }

    /**
     * 新增日出库量
     * 
     * @param wDayExitWarehouseStat 日出库量
     * @return 结果
     */
    @Override
    public int insertWDayExitWarehouseStat(WDayExitWarehouseStat wDayExitWarehouseStat)
    {
        wDayExitWarehouseStat.setCreateTime(DateUtils.getNowDate());
        return wDayExitWarehouseStatMapper.insertWDayExitWarehouseStat(wDayExitWarehouseStat);
    }

    /**
     * 修改日出库量
     * 
     * @param wDayExitWarehouseStat 日出库量
     * @return 结果
     */
    @Override
    public int updateWDayExitWarehouseStat(WDayExitWarehouseStat wDayExitWarehouseStat)
    {
        wDayExitWarehouseStat.setUpdateTime(DateUtils.getNowDate());
        return wDayExitWarehouseStatMapper.updateWDayExitWarehouseStat(wDayExitWarehouseStat);
    }

    /**
     * 批量删除日出库量
     * 
     * @param dayExitStatisticIds 需要删除的日出库量主键
     * @return 结果
     */
    @Override
    public int deleteWDayExitWarehouseStatByDayExitStatisticIds(Long[] dayExitStatisticIds)
    {
        return wDayExitWarehouseStatMapper.deleteWDayExitWarehouseStatByDayExitStatisticIds(dayExitStatisticIds);
    }

    /**
     * 删除日出库量信息
     * 
     * @param dayExitStatisticId 日出库量主键
     * @return 结果
     */
    @Override
    public int deleteWDayExitWarehouseStatByDayExitStatisticId(Long dayExitStatisticId)
    {
        return wDayExitWarehouseStatMapper.deleteWDayExitWarehouseStatByDayExitStatisticId(dayExitStatisticId);
    }
}
